<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>prevent 修饰符</title>
</head>
<body>
<div id="app">
  <form action="https://www.baidu.com/s" method="get">
    <input type="text" name="wd" value="百度一下">
    <input type="submit" value="提交"  @click="clicked">
    <input type="button" value="提交"  @click="clicked">
    <input type="submit" value="提交"  @click.prevent="clicked">
  </form>
</div>
<script type="module">
  import {createApp} from "../../../../../js/vue.esm-browser.js";

  const app = createApp({
    setup(){

     function clicked(){
        console.log("点击了 提交 按钮");
      }
      return {
       clicked
      }
    }
  })

  app.mount("#app")
</script>
</body>
</html>